using System;
using Sirenix.OdinInspector;

namespace GPUAnimationLib.Runtime
{
    /// <summary>
    /// GPU动画数据
    /// </summary>
    [Serializable]
    public struct GPUAnimationData
    {
        /// <summary>
        /// 动画Id
        /// </summary>
        [Title("动画Id")] public int AnimationId;

        /// <summary>
        /// 开始帧数
        /// </summary>
        [Title("开始帧数")] public int StartIndex;

        /// <summary>
        /// 长度
        /// </summary>
        [Title("长度")] public int Length;

        /// <summary>
        /// 是否循环
        /// </summary>
        [Title("是否循环")] public bool Loop;

        /// <summary>
        /// 采样率
        /// </summary>
        [Title("动画采样率")] public float SampleFrameRate;
    }
}